/*
 * Copyright (c) 2023 Huawei Technologies Co., Ltd.
 * openUBMC is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *         http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

#ifndef __AWM_M11P_MEMORY_H__
#define __AWM_M11P_MEMORY_H__

#include "interface/memory.h"
#include <mc/engine.h>

namespace dev {

class awm_m11p_memory : public mc::engine::object<awm_m11p_memory> {
public:
    MC_OBJECT(awm_m11p_memory, "Memory", "Memory/${DimmNum}", (Memory))

    awm_m11p_memory()  = default;
    ~awm_m11p_memory() = default;

    bool start();
    bool stop();
    bool init(mc::mutable_dict& csr_object, const mc::dict& connector);

    bool reset_default_properties();

    Memory m_memory;
};

} // namespace dev

#endif
